home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / ifont42.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.1 KB  |  56 lines

  1. /* Copyright (C) 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: ifont42.h,v 1.3 2000/09/19 19:00:43 lpd Exp $ */
  20. /* Procedure for building a Type 42 or CIDFontType 2 font */
  21.  
  22. #ifndef ifont42_INCLUDED
  23. #  define ifont42_INCLUDED
  24.  
  25. /* Build a type 11 (TrueType CID-keyed) or 42 (TrueType) font. */
  26. int build_gs_TrueType_font(P8(i_ctx_t *, os_ptr, gs_font_type42 **, font_type,
  27.                   gs_memory_type_ptr_t, const char *, const char *,
  28.                   build_font_options_t));
  29.  
  30. /*
  31.  * Check a parameter for being an array of strings.  Return the parameter
  32.  * value even if it is of the wrong type.
  33.  */
  34. int font_string_array_param(P3(os_ptr, const char *, ref *));
  35.  
  36. /*
  37.  * Get a GlyphDirectory if present.  Return 0 if present, 1 if absent,
  38.  * or an error code.
  39.  */
  40. int font_GlyphDirectory_param(P2(os_ptr, ref *));
  41.  
  42. /*
  43.  * Get a glyph outline from GlyphDirectory.  Return an empty string if
  44.  * the glyph is missing or out of range.
  45.  */
  46. int font_gdir_get_outline(P3(const ref *, long, gs_const_string *));
  47.  
  48. /*
  49.  * Access a given byte offset and length in an array of strings.
  50.  * This is used for sfnts and for CIDMap.  The int argument is 2 for sfnts
  51.  * (because of the strange behavior of odd-length strings), 1 for CIDMap.
  52.  */
  53. int string_array_access_proc(P5(const ref *, int, ulong, uint, const byte **));
  54.  
  55. #endif /* ifont42_INCLUDED */
  56.